Add a note to ::fill and ::expand docs
authorMatthias Clasen <mclasen@redhat.com>
Mon, 31 Jan 2011 15:26:28 +0000 (10:26 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 31 Jan 2011 15:26:28 +0000 (10:26 -0500)
gtk/gtkbox.c

index 6292ca854a3e3d4d9aac5ada8454f17e5fd9f239..1ff75ebb335aa9b40f0b3c532894de48197e066a 100644 (file)
@@ -261,6 +261,10 @@ gtk_box_class_init (GtkBoxClass *class)
    * Note that the default value for this property is %FALSE for GtkBox,
    * but #GtkHBox, #GtkVBox and other subclasses use the old default
    * of %TRUE.
+   *
+   * Note that the #GtkWidget:halign, #GtkWidget:valign, #GtkWidget:hexpand
+   * and #GtkWidget:vexpand properties are the preferred way to influence
+   * child size allocation in containers.
    */
   gtk_container_class_install_child_property (container_class,
                                              CHILD_PROP_EXPAND,
@@ -274,6 +278,10 @@ gtk_box_class_init (GtkBoxClass *class)
    * GtkBox:fill:
    *
    * Whether the child should receive extra space when the parent grows.
+   *
+   * Note that the #GtkWidget:halign, #GtkWidget:valign, #GtkWidget:hexpand
+   * and #GtkWidget:vexpand properties are the preferred way to influence
+   * child size allocation in containers.
    */
   gtk_container_class_install_child_property (container_class,
                                              CHILD_PROP_FILL,